package com.database;
import java.sql.*;

public class DataLink {
	
	  String user="root";
	  String password="87596992";
	  String url = "jdbc:mysql://localhost:3306/DB";
	  
	  public  Connection link() throws Exception
	  {
		  Connection con=null;
		  Class.forName("com.mysql.jdbc.Driver");	
		  con=DriverManager.getConnection(url,user,password);
		  return con;
	  }
	  

}
